package com.bckj.fastboot.paid.biz.interfaces.controller;

import com.bckj.fastboot.paid.api.model.RefundRequest;
import com.bckj.fastboot.paid.api.model.RefundResponse;
import com.bckj.fastboot.paid.api.service.RefundRemoteService;
import com.bckj.fastboot.paid.biz.application.service.RefundService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("refund")
public class RefundController implements RefundRemoteService {

    private final RefundService refundService;

    @Override
    public RefundResponse refund(RefundRequest request) {
        return refundService.refund(request);
    }
}
